package com.itheima.leetcode.od.c.logicalsimulation;

import java.text.DecimalFormat;
import java.util.Scanner;

/**
 * <h3>单词重量</h3>
 */
public class WordWeight {
    public static void main(String[] args) {
        // 输入处理
        Scanner in = new Scanner(System.in);
        String input_str = in.nextLine();
        String[] strs = input_str.split("\\s+");

        // 注意要定义成double 哦
        double total_num = 0.0;
        for (String x : strs) {
            total_num += x.length();
        }

        // 保留两位小数
        DecimalFormat df = new DecimalFormat("#.00");
        System.out.println(df.format((total_num / strs.length)));
    }
}